package com.sayice.design.lab8_2;

/**
 * @author shubing
 */
public class Player implements Observer {
    public final int id;
    
    public Player(int id) {
        this.id = id;
    }
    
    @Override
    public void showMessage(String msg) {
        System.out.println(id + "号玩家收到消息：" + msg);
    }
}
